$gwx_XC_34=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){
if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={};
}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {};
var e_={}
if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys;
var d_={}
if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines;
var f_={}
if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {};
var p_={}
__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {}
__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {};
__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {};
var z=__WXML_GLOBAL__.ops_set.$gwx_XC_34 || [];
function gz$gwx_XC_34_1(){
if( __WXML_GLOBAL__.ops_cached.$gwx_XC_34_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_34_1
__WXML_GLOBAL__.ops_cached.$gwx_XC_34_1=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([1,false])
Z([[7],[3,'color']])
Z([[7],[3,'title']])
Z([3,'personalCenter'])
Z([3,'top-box'])
Z([[2,'!'],[[7],[3,'canIUseGetUserProfile']]])
Z([3,'top'])
Z([[2,'&&'],[[2,'!'],[[7],[3,'isEmpower']]],[[2,'||'],[[2,'=='],[[6],[[7],[3,'userInfo']],[3,'avatar_url']],[1,'']],[[2,'=='],[[6],[[7],[3,'userInfo']],[3,'avatar_url']],[1,null]]]])
Z([3,'bindgetuserinfofun'])
Z([3,'top-img'])
Z([3,'zh_CN'])
Z([3,'getUserInfo'])
Z([[2,'=='],[[6],[[7],[3,'userInfo']],[3,'is_vip']],[1,1]])
Z([[2,'?:'],[[2,'=='],[[6],[[7],[3,'userInfo']],[3,'is_vip']],[1,1]],[1,'toVIPDetail'],[1,'']])
Z(z[9])
Z(z[12])
Z(z[13])
Z([3,'top-info'])
Z(z[7])
Z(z[6])
Z([[2,'||'],[[2,'=='],[[6],[[7],[3,'userInfo']],[3,'avatar_url']],[1,'']],[[2,'=='],[[6],[[7],[3,'userInfo']],[3,'avatar_url']],[1,null]]])
Z([3,'getUserProfile'])
Z(z[9])
Z(z[12])
Z(z[13])
Z(z[9])
Z(z[12])
Z(z[13])
Z(z[17])
Z(z[20])
Z(z[0])
Z([[7],[3,'nearby_hotel_switch']])
Z([3,'skipService'])
Z([3,'3'])
})(__WXML_GLOBAL__.ops_cached.$gwx_XC_34_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_34_1
}
__WXML_GLOBAL__.ops_set.$gwx_XC_34=z;
__WXML_GLOBAL__.ops_init.$gwx_XC_34=true;
var x=['./pages/personalCenter/personalCenter.wxml'];d_[x[0]]={}
var m0=function(e,s,r,gg){
var z=gz$gwx_XC_34_1()
var o8J=_mz(z,'navigation-bar',['back',0,'color',1,'title',1],[],e,s,gg)
_(r,o8J)
var c9J=_n('view')
_rz(z,c9J,'class',3,e,s,gg)
var aBK=_n('view')
_rz(z,aBK,'class',4,e,s,gg)
var tCK=_v()
_(aBK,tCK)
if(_oz(z,5,e,s,gg)){tCK.wxVkey=1
var eDK=_n('view')
_rz(z,eDK,'class',6,e,s,gg)
var bEK=_v()
_(eDK,bEK)
if(_oz(z,7,e,s,gg)){bEK.wxVkey=1
var oFK=_mz(z,'button',['bindgetuserinfo',8,'class',1,'lang',2,'openType',3],[],e,s,gg)
var xGK=_v()
_(oFK,xGK)
if(_oz(z,12,e,s,gg)){xGK.wxVkey=1
}
xGK.wxXCkey=1
_(bEK,oFK)
}
else{bEK.wxVkey=2
var oHK=_mz(z,'view',['catchtap',13,'class',1],[],e,s,gg)
var fIK=_v()
_(oHK,fIK)
if(_oz(z,15,e,s,gg)){fIK.wxVkey=1
}
fIK.wxXCkey=1
_(bEK,oHK)
}
var cJK=_mz(z,'view',['catchtap',16,'class',1],[],e,s,gg)
var hKK=_v()
_(cJK,hKK)
if(_oz(z,18,e,s,gg)){hKK.wxVkey=1
}
hKK.wxXCkey=1
_(eDK,cJK)
bEK.wxXCkey=1
_(tCK,eDK)
}
else{tCK.wxVkey=2
var oLK=_n('view')
_rz(z,oLK,'class',19,e,s,gg)
var cMK=_v()
_(oLK,cMK)
if(_oz(z,20,e,s,gg)){cMK.wxVkey=1
var oNK=_mz(z,'button',['bindtap',21,'class',1],[],e,s,gg)
var lOK=_v()
_(oNK,lOK)
if(_oz(z,23,e,s,gg)){lOK.wxVkey=1
}
lOK.wxXCkey=1
_(cMK,oNK)
}
else{cMK.wxVkey=2
var aPK=_mz(z,'view',['catchtap',24,'class',1],[],e,s,gg)
var tQK=_v()
_(aPK,tQK)
if(_oz(z,26,e,s,gg)){tQK.wxVkey=1
}
tQK.wxXCkey=1
_(cMK,aPK)
}
var eRK=_mz(z,'view',['catchtap',27,'class',1],[],e,s,gg)
var bSK=_v()
_(eRK,bSK)
if(_oz(z,29,e,s,gg)){bSK.wxVkey=1
}
bSK.wxXCkey=1
_(oLK,eRK)
cMK.wxXCkey=1
_(tCK,oLK)
}
tCK.wxXCkey=1
_(c9J,aBK)
var o0J=_v()
_(c9J,o0J)
if(_oz(z,30,e,s,gg)){o0J.wxVkey=1
}
var lAK=_v()
_(c9J,lAK)
if(_oz(z,31,e,s,gg)){lAK.wxVkey=1
}
o0J.wxXCkey=1
lAK.wxXCkey=1
_(r,c9J)
var oTK=_n('customer-service')
_rz(z,oTK,'bind:tapService',32,e,s,gg)
_(r,oTK)
var xUK=_n('Tabbar')
_rz(z,xUK,'current',33,e,s,gg)
_(r,xUK)
return r
}
e_[x[0]]=e_[x[0]]||{f:m0,j:[],i:[],ti:[],ic:[]}
if(path&&e_[path]){
return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[]
;g="$gwx_XC_34";var main=e_[path].f
if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1);
try{
main(env,{},root,global);
_tsd(root)
}catch(err){
console.log(err)
}
;g="";
return root;
}
}
}
}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_34();	if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/personalCenter/personalCenter.wxml'] = [$gwx_XC_34, './pages/personalCenter/personalCenter.wxml'];else __wxAppCode__['pages/personalCenter/personalCenter.wxml'] = $gwx_XC_34( './pages/personalCenter/personalCenter.wxml' );
	;__wxRoute = "pages/personalCenter/personalCenter";__wxRouteBegin = true;__wxAppCurrentFile__="pages/personalCenter/personalCenter.js";define("pages/personalCenter/personalCenter.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){
"use strict";var e,t=require("../../@babel/runtime/helpers/interopRequireDefault")(require("../../@babel/runtime/regenerator")),n=require("../../@babel/runtime/helpers/asyncToGenerator"),a=require("../../request/api"),r=getApp();require("../../utils/util.js");Page({data:{title:"个人中心",color:"#FFFFFF",isEmpower:!1,userInfo:{},phoneConfig:"",nearby_hotel_switch:!1,canIUseGetUserProfile:!1,version:null},onLoad:(e=n(t.default.mark((function e(n){var r,o,i;return t.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this,this.getPhoneConfig(),wx.getUserProfile&&this.setData({canIUseGetUserProfile:!0}),o=wx.getAccountInfoSync(),this.setData({version:o.miniProgram.version||null}),e.next=7,(0,a.getUserInfo)();case 7:i=e.sent,r.setData({userInfo:i});case 9:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)}),getPhoneConfig:function(){var e=this;r.ajax({url:"common/Common/getConfig",data:{key:"web_config.CustomerPhone"},success:function(t){1e3==t.data.code&&e.setData({phoneConfig:t.data.data})}})},getHotelConfig:function(){var e=this;r.ajax({url:"common/Common/getConfig",data:{key:"web_config.nearby_hotel_switch"},success:function(t){1e3==t.data.code&&e.setData({nearby_hotel_switch:/^true$/i.test(t.data.data)})}})},getUserProfile:function(e){var t=this;wx.getUserProfile({desc:"用于完善会员资料",success:function(e){t.getSubmituserinfo(e.userInfo)}})},getSubmituserinfo:function(e){var t=this;r.ajax({url:"User/User/editUser",data:{name:e.nickName,url:e.avatarUrl},success:function(e){1e3==e.data.code&&t.getUserInfo()}})},bindgetuserinfofun:function(e){console.log(e);"getUserInfo:fail:cancel to confirm login"==e.detail.errMsg||"getUserInfo:fail auth deny"==e.detail.errMsg||"undefined"==e.detail.rawData||this.editUserInfo(e.detail.userInfo)},editUserInfo:function(e){var t=this;r.ajax({url:"User/User/editUser",data:{url:e.avatarUrl,name:e.nickName},success:function(e){1e3==e.data.code&&(t.setData({}),t.getUserInfo())}})},goMyOrder:function(){wx.navigateTo({url:"../myOrder/myOrder"})},goNearbyHotel:function(){wx.navigateTo({url:"../nearbyHotel/nearbyHotel"})},goMySetting:function(){wx.navigateTo({url:"../setting/setting"})},goCallPhone:function(e){var t=e.currentTarget.dataset.phone;wx.makePhoneCall({phoneNumber:t})},goQuestions:function(){wx.navigateTo({url:"../questions/questions"})},goFeedback:function(){wx.navigateTo({url:"../feedback/feedback"})},checkVersion:function(){var e=this;return n(t.default.mark((function n(){return t.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getUpdateManager();case 2:t.sent||r.showToast("已经是最新版");case 4:case"end":return t.stop()}}),n)})))()},getUpdateManager:function(){var e=wx.getUpdateManager();return new Promise((function(t){e.onCheckForUpdate((function(e){return t(e.hasUpdate)})),e.onUpdateReady((function(){wx.showModal({title:"更新提示",content:"新版本已经准备好，是否重启应用？",success:function(t){t.confirm&&e.applyUpdate()}})})),e.onUpdateFailed((function(){}))}))},toVIPDetail:function(){wx.navigateTo({url:"../marketing/VIP/detail/detail"})},skipService:function(){wx.navigateTo({url:"../contact-service/contact-service"})}});
},{isPage:true,isComponent:true,currentFile:'pages/personalCenter/personalCenter.js'});require("pages/personalCenter/personalCenter.js");